package com.zte.claa.inficombo.csa.app.model.dev;

import java.io.Serializable;

@SuppressWarnings("serial")
public class ResourceShadow implements Serializable {
	private String resid; 		//	资源实例ID
	private String resname; 	//	资源实例名
	private String restype; 	//	资源类型ID
	private String restypename; //  关联查询
	private String projectid; 	//	归属项目
	private String remark;      //  备注 (可保存addr等关键信息).
	// gps经纬度坐标（室内定位时填写xy坐标）...
	private double gpslat = 32.0;
	private double gpslng = 120.0;
	// 所在的定位zoneid
	private int zoneid = -1;

	public ResourceShadow(){
		
	}
	
	public String getResid() {
		return resid;
	}

	public void setResid(String resid) {
		this.resid = resid;
	}

	public String getRestype() {
		return restype;
	}

	public void setRestype(String restype) {
		this.restype = restype;
	}

	public String getResname() {
		return resname;
	}

	public void setResname(String resname) {
		this.resname = resname;
	}

	public String getProjectid() {
		return projectid;
	}

	public void setProjectid(String projectid) {
		this.projectid = projectid;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getRestypename() {
		return restypename;
	}

	public void setRestypename(String restypename) {
		this.restypename = restypename;
	}

	public double getGpslat() {
		return gpslat;
	}

	public void setGpslat(double gpslat) {
		this.gpslat = gpslat;
	}

	public double getGpslng() {
		return gpslng;
	}

	public void setGpslng(double gpslng) {
		this.gpslng = gpslng;
	}

	public int getZoneid() {
		return zoneid;
	}

	public void setZoneid(int zoneid) {
		this.zoneid = zoneid;
	}

	// 相等方法.
	public boolean equals(Object anObject) {
        if (this == anObject) {
            return true;
        }
        if (anObject instanceof ResourceShadow) {
        	ResourceShadow dest = (ResourceShadow)anObject;
        	return (this.resid.equals(dest.getResid()) && this.restype.equals(dest.getRestype()));
        }
        return false;
	 }
	
	public String toString() {
		StringBuilder sb = new StringBuilder();
		sb.append("resid=").append(resid).append(", ");
		sb.append("restype=").append(restype).append(", ");
		sb.append("resname=").append(resname).append(", ");
		sb.append("remark=").append(remark).append(", ");
		sb.append("gpslat=").append(gpslat).append(", ");
		sb.append("gpslng=").append(gpslng).append(", ");
		sb.append("zoneid=").append(zoneid).append(", ");
		sb.append("projectid=").append(projectid);
		return sb.toString();		
	}
}
